<template>
  <el-card class="box-card simple-card">
    <div class="box-container">
      <div class="card-left">
        <p class="card-count">{{cardCount}}</p>
        <span class="card-type">{{cardType}}</span>
      </div>
      <div class="card-right">
        <slot></slot>
      </div>
    </div>
  </el-card>
</template>

<script>
  export default {
    name: "SimpleCard",
    props: {
      cardCount: {
        type: Number
      },
      cardType: {
        type: String
      }
    }
  }
</script>

<style scoped>
  .text {
    font-size: 14px;
  }

  .item {
    padding: 18px 0;
  }

  .box-card {
    width: 400px;
    margin-top: 30px;
    height: 110px;
    background-color: #e0e0e0;
    padding: 15px;
    cursor: pointer;
  }

  .box-card:hover {
    transform: scale(1.05, 1.05);
  }

  .card-count {
    font-size: 50px;
    display: inline-block;
    margin-right: 20px;
    font-weight: bold;
    color: #666;
  }
  .box-container {
    background-color: #fff;
  }
  .card-right {
    font-size: 50px;
  }

</style>

<style>
  .simple-card .el-card__body {
    padding: 0 !important;
  }
  .el-card__body .box-container  {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    border-radius: 5px;
  }
  .card-right i {
    font-size: 40px;
    color: #666;
  }
</style>